import request from '@/utils/request';
// list
export const laoshixinxiList = (params) => {
    return request({
        url: '/laoshixinxi/page',
        method: 'post',
        data: params,
    })
};
export const laoshixinxiDetail = (id) => {
    return request({
        url: '/laoshixinxi/'+id,
        method: 'get',
    })
};
// add
export const laoshixinxiSave = (params) => {
    return request({
        url: '/laoshixinxi',
        method: 'post',
        data: params,
    })
};
// updt
export const laoshixinxiEdit = (params) => {
    return request({
        url: '/laoshixinxi',
        method: 'put',
        data: params,
    })
};
// delete
export const laoshixinxiDelete = (id) => {
    return request({
        url: '/laoshixinxi/'+id,
        method: 'delete',
    })
};
// pldel
export const laoshixinxiDeleteList = (laoshixinxis) => {
    return request({
        url: '/laoshixinxi/deleteList',
        data:{list:laoshixinxis},
        method: 'post',
    })
};
// all
export const laoshixinxiAllList = () => {
    return request({
        url: '/laoshixinxi',
        method: 'get',
    })
};
export const laoshixinxiUpdatePassword = (params) =>{ return request({ url: `/laoshixinxi/updatePassword`, method: 'put',data: {...params,mima:params.password}, })};
